package com.cda.service;

import com.cda.entity.MonneyInfoLog;
import com.cda.entity.SfdevicebindEntity;

/**
 * Created by peiming on 2019/3/6.
 */
public interface PosInputInfoSevice {
    //定时发送买入指令
    public  void excuteByTime() throws Exception;
    //断点续传功到服务器
    public  void checkData();
    //读取数据库基础配置
    public  void readSetInfo();

    /**
     *
     * @param Card_no 卡号
     * @param Amount 金额  单位：分
     *  @param trace 流水号
     *  @param refer 交易参考号
     * @return
     */
    public boolean control(MonneyInfoLog monneyInfoLog);

    /**
     * 判断是否是可消费时间
     * @return
     */
    public boolean isWork();
    /**
     *获取本地ip
     * @return
     */
    public String getHostIp();


    /**
     * 开闸机方式
     * @param id
     * @param card_no
     * @param amount
     * @param sfdevicebindEntity
     */
    void opendDoor(String id,MonneyInfoLog monneyInfoLog, SfdevicebindEntity sfdevicebindEntity);


}
